//
//  EGMNordicBlePedoOper.h
//  BleSports
//
//  Created by hh on 14-10-23.
//  Copyright (c) 2014年 egoman. All rights reserved.
//

#import "EGMBleSportsOperation.h"
#import "SDKBleManager.h"

@interface SDKBlePedoOper : EGMBleSportsOperation

@property(copy,nonatomic) SDKDataChangedBlock readPedoFlagBlock;
@property(copy,nonatomic) SDKDataChangedBlock notifyPedoFlagBlock;
@property(copy,nonatomic) SDKDataChangedBlock readBatteryBlock;
@property(copy,nonatomic) SDKDataChangedBlock notifyBatteryBlock;
@property(copy,nonatomic) SDKDataChangedBlock notifyEcgBlock;

@property(copy,nonatomic) SDKDataChangedBlock readMacBlock;
@property(copy,nonatomic) SDKDataChangedBlock readManufacturerBlock;
@property(copy,nonatomic) SDKDataChangedBlock readModelBlock;
@property(copy,nonatomic) SDKDataChangedBlock readHardwareBlock;
@property(copy,nonatomic) SDKDataChangedBlock readSoftwareBlock;
//@property(copy,nonatomic) SDKDataChangedBlock readEcgBlock;
@property(copy,nonatomic) SDKDataChangedBlock readParameterBlock;
@property(strong,nonatomic) SDKParamData* paramData;

//-(void)onNotifyStepInHour:(NSData*)data;
//-(void)clearPacketDict;


-(void)enableMassDataNotify:(BOOL)isEnabled;
-(void)syncTime;

-(void)readParameterData:(SDKDataChangedBlock)block;
-(void)enableParameterNotify:(BOOL)isEnabled;
-(void)onNotifyPedoParameter:(NSData*)data;

-(void)readTransparentData;
-(void)enableTransparentNotify:(BOOL)isEnabled;
-(void)onNotifyTransparentData:(NSData*)data;

-(void)writeCmdOfReadOfflineData:(SDKDataChangedBlock)block;

-(void)readBatteryPower;
-(void)enableBatteryNotify:(BOOL)isEnabled;
-(void)onNotifyBatteryLevel:(NSData*)data;

-(void)readMacAddress;
-(void)readManufacturerData;
-(void)readHardwareVersionData;
-(void)readModelData;
-(void)readSoftwareVersionData;
-(void)onReadMac:(NSData*)data;
-(void)onReadManufacturer:(NSData*)data;
-(void)onReadModel:(NSData*)data;
-(void)onReadHardware:(NSData*)data;
-(void)onReadSoftware:(NSData*)data;
- (void)onNofityEcg:(NSData*)data;

- (void)enableEcgNotify:(BOOL)isEanbled;

-(void)enableHourStepNotify:(BOOL)isEnabled;
-(void)readHourStepData:(SDKDataChangedBlock)block;
-(void)startHourStepNotify:(SDKDataChangedBlock)block;
-(void)stopHourStepNotify;
-(void)onNotifyStepInHour:(NSData *)data;

-(void) saveParameterPage1ToDevice:(SDKParamPersonalData*)param;
-(void) saveParameterPage2ToDevice:(SDKParamReminderData*)param;
-(void) saveParameterPage3ToDevice:(SDKParamAlarmData*)param;
-(void) saveParameterPage4ToDevice:(SDKParamSedentaryData*)param;

-(void) writeCmdOfEnterCamera;
-(void) writeCmdOfExitCamera ;

-(void)writeCmdOfFindDevice;
-(void)writeCmdOfSilentDevice;

-(void) writeCmdOfWeather:(SDKWeatherData*)info;
@end
